package com.hxzy.shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hxzy.shop.dto.auth.resp.ModuleCopyResp;
import com.hxzy.shop.entity.AdminMenu;
import com.hxzy.shop.entity.AdminModule;

import java.util.List;

/**
 * 功能描述:  商户对应模块表(AdminMenu)表数据库访问层
 *
 * @author tonneyyy
 */
public interface AdminMenuMapper extends BaseMapper<AdminMenu> {

    /**
     * 查询商户的模块
     */
    List<ModuleCopyResp> getByAdminMenuList();

    /**
     * 查询角色对应的菜单
     * @param roleId
     * @return
     */
    List<AdminModule> getByAdminModuleList(String roleId);
}
